package com.luojay.beta.service.impl;

import com.luojay.beta.dao.mapper.UserMapper;
import com.luojay.beta.entity.User;
import com.luojay.beta.service.DemoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class DemoServiceImpl implements DemoService {
    @Resource
    private UserMapper userMapper;
    @Override
    public String test() {
        User user = userMapper.selectByPrimaryKey(1l);
        return user.toString();
    }
}
